package com.mingqi.enetconnected.primary.personcentre;

import android.graphics.Bitmap;
import android.widget.ImageView;

import com.mingqi.enetconnected.R;
import com.mingqi.enetconnected.base.BaseActivity;
import com.mingqi.enetconnected.util.resource.ResourceUtils;
import com.uuzuche.lib_zxing.activity.CodeUtils;

import butterknife.BindView;

public class InviteCodeActivity extends BaseActivity {

    private Bitmap mBitmap;
    @BindView(R.id.iv_invite_code)
    ImageView mIvInviteCode;

    @Override
    protected int getLayoutID() {
        return R.layout.activity_invite_code;
    }

    @Override
    protected void initView() {

        setTitleName(ResourceUtils.getString(R.string.invite_code));

        int dimenWidth = ResourceUtils.getDimen(R.dimen.x160);
        int dimenHeight = ResourceUtils.getDimen(R.dimen.y160);
        mBitmap = CodeUtils.createImage("邀请码", dimenWidth, dimenHeight, null);
        mIvInviteCode.setImageBitmap(mBitmap);
    }
}
